home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / _RuntimeInstaller_mx_managers_SystemManager.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  3.5 KB  |  75 lines

  1. package
  2. {
  3.    import flash.system.ApplicationDomain;
  4.    import mx.core.EmbeddedFontRegistry;
  5.    import mx.core.IFlexModule;
  6.    import mx.core.IFlexModuleFactory;
  7.    import mx.managers.SystemManager;
  8.    
  9.    public class _RuntimeInstaller_mx_managers_SystemManager extends SystemManager implements IFlexModuleFactory
  10.    {
  11.       public function _RuntimeInstaller_mx_managers_SystemManager()
  12.       {
  13.          super();
  14.       }
  15.       
  16.       override public function create(... rest) : Object
  17.       {
  18.          if(rest.length > 0 && !(rest[0] is String))
  19.          {
  20.             return super.create.apply(this,rest);
  21.          }
  22.          var _loc2_:String = rest.length == 0 ? "RuntimeInstaller" : String(rest[0]);
  23.          var _loc3_:Class = Class(getDefinitionByName(_loc2_));
  24.          if(!_loc3_)
  25.          {
  26.             return null;
  27.          }
  28.          var _loc4_:Object = new _loc3_();
  29.          if(_loc4_ is IFlexModule)
  30.          {
  31.             IFlexModule(_loc4_).moduleFactory = this;
  32.          }
  33.          if(rest.length == 0)
  34.          {
  35.             EmbeddedFontRegistry.registerFonts(this.info()["fonts"],this);
  36.          }
  37.          return _loc4_;
  38.       }
  39.       
  40.       override public function info() : Object
  41.       {
  42.          return {
  43.             "applicationComplete":"onApplicationComplete()",
  44.             "compiledLocales":["en_US","de","es","fr","it","ja","ko","pt","ru","zh_Hans","zh_Hant","cs","nl","pl","sv","tr"],
  45.             "compiledResourceBundleNames":["CSS","EULA","RuntimeInstaller","collections","containers","controls","core","effects","skins","states","styles"],
  46.             "currentDomain":ApplicationDomain.currentDomain,
  47.             "fonts":{
  48.                "Myriad Pro":{
  49.                   "regular":true,
  50.                   "bold":false,
  51.                   "italic":false,
  52.                   "boldItalic":false
  53.                },
  54.                "Myriad Pro Bold":{
  55.                   "regular":true,
  56.                   "bold":false,
  57.                   "italic":false,
  58.                   "boldItalic":false
  59.                }
  60.             },
  61.             "height":"100%",
  62.             "horizontalScrollPolicy":"off",
  63.             "layout":"horizontal",
  64.             "mainClassName":"RuntimeInstaller",
  65.             "mixins":["_RuntimeInstaller_FlexInit","_macMinButtonStyle","_alertButtonStyleStyle","_ControlBarStyle","_ScrollBarStyle","_winMaxButtonStyle","_activeTabStyleStyle","_textAreaHScrollBarStyleStyle","_ToolTipStyle","_winCloseButtonStyle","_DragManagerStyle","_macCloseButtonStyle","_statusTextStyleStyle","_TextAreaStyle","_gripperSkinStyle","_comboDropdownStyle","_ListBaseStyle","_winRestoreButtonStyle","_HTMLStyle","_ProgressBarStyle","_textAreaVScrollBarStyleStyle","_ContainerStyle","_globalStyle","_linkButtonStyleStyle","_windowStatusStyle","_windowStylesStyle","_PanelStyle","_activeButtonStyleStyle","_ApplicationControlBarStyle","_errorTipStyle","_richTextEditorTextAreaStyleStyle","_todayStyleStyle","_CursorManagerStyle","_TextInputStyle","_dateFieldPopupStyle","_plainStyle","_dataGridStylesStyle","_winMinButtonStyle","_macMaxButtonStyle","_ApplicationStyle","_SWFLoaderStyle","_headerDateTextStyle","_ButtonStyle","_popUpMenuStyle","_titleTextStyleStyle","_swatchPanelTextFieldStyle","_opaquePanelStyle"
  66.             ,"_weekDayStyleStyle","_headerDragProxyStyleStyle","_EULAWatcherSetupUtil","_RuntimeInstallerWatcherSetupUtil","_InstalledAppItemRendererWatcherSetupUtil"],
  67.             "preinitialize":"onPreInitialize()",
  68.             "verticalScrollPolicy":"off",
  69.             "width":"100%"
  70.          };
  71.       }
  72.    }
  73. }
  74.  
  75.